<?php 
namespace app\common\validate;

use think\Validate;

class Depart extends Validate
{
	protected $rule = [
			'real_name|真实姓名' => 'require|max:5',
			'password|登录密码'=> 'require',
			'mobile|手机号码' => 'require|number',
			'idcard|身份证' => 'require',
			'birth|出生年月' => 'require',
			'depart_id|所在部门' => 'require',
			'post_id|所在职位' => 'require',
			'entry_time|入职时间' => 'require',	
	];
	protected $scene = [
			'add' => ['real_name','password','mobile','idcard','birth','depart_id','post_id','entry_time'],
			'update' => ['real_name','mobile','idcard','birth','depart_id','post_id','entry_time']
	];
}